<template>
	<view>
		<van-cell title="姓名" :value="detailData.name"/>
		<van-cell title="性别" :value="getSexText(detailData.sex)"/>
		<van-cell title="联系方式" :value="detailData.tel"/>
		<van-cell title="身份证号" :value="detailData.idcard"/>
		<van-cell title="驾照类型" :value="detailData.type"/>
		
		<view style="margin-top: 50px;">
			<van-divider contentPosition="center">任务安排</van-divider>
			<view v-for="(item,index) in detailData.lstCD_relation" :key="index" style="display: flex;flex-flow: row;justify-content: space-between;background-color: #fff;border-bottom: 1px solid rgb(248,248,248); padding: 5px 15px;">
				<view>{{item.setoffTime}}</view>
				<view>-</view>
				<view>{{item.backTime}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detailData: {}
			}
		},
		onLoad(options) {
			this.detailData = JSON.parse(decodeURIComponent(options.data))
		},
		methods: {
			getSexText(code){
				if(code == 0){
					return '男'
				}else{
					return '女'
				}
			}
		},
		
	}
</script>

<style>

</style>
